package com.fsserver.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础实体类
 * Base Entity
 *
 * @author fsserver
 */
@Data
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     * Create time
     */
    private Date createTime;

    /**
     * 更新时间
     * Update time
     */
    private Date updateTime;

    /**
     * 是否删除（0-未删除，1-已删除）
     * Is deleted (0-Not deleted, 1-Deleted)
     */
    @TableLogic
    private Integer isDeleted;
} 